public class Admin extends Person{
    private String department; //部门

    public Admin(String address,String department){
        super();                  //调用父类无参构造（可省略）
        super.address = address;  //访问父类胡protected属性
        this.department = department;
    }
    public void work(){
        super.work();      //调用父类的work方法
        System.out.println("在"+ department + "部门处理行政事务");
    }
}
